package cn.bellychang.flyweight;

import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;

/**
 * @author ChangLiang
 * @date 2020/4/26
 */
public class AppTest {

    @Test
    @DisplayName("test flyweight ")
    public void test(){
        GoPiece goPiece1 = new GoPiece(IconFactory.getBlackIcon(), new Position(10, 20));
        GoPiece goPiece2 = new GoPiece(IconFactory.getBlackIcon(), new Position(200, 20));
    }
}
